<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div {
            height: 30px;
            background: yellow;
            margin: 30px;
        }
        .idv {
            border: 30px solid gray;
            outline: 10px solid red;
            outline-offset: 20px;
            background: blue;
        }
    </style>
</head>
<body>
<div></div>
<div class="idv"></div>
<div></div>
</body>
</html>